package com.zxp.mybatis.bean;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zxp
 * @date 2021/8/19 18:16
 */
@Data
@ToString
@NoArgsConstructor
public class Account {

    private Integer id;
    private Integer userId;
    private BigDecimal money;

    private Date createTime;
    private Date updateTime;

    // 表里面没有此字段
    private Long updateLongTime;
    private User user;

    public Account(Integer userId, BigDecimal money, Date createTime, Date updateTime) {
        this.userId = userId;
        this.money = money;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
